package com.portal.incurridos.persistence.wall;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author Alan D�vila
 * e-mail ustargab@gmail.com
 * date 10/11/2013 10:37:11
 */
@Entity
@Table(schema = "app", name = "incurred")
@SequenceGenerator(sequenceName = "app.incurred_incurred_seq", allocationSize = 1, name = "id_gen")
public class Incurred {

	/**
	 * Idenfier of incurred.
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "id_gen")
	private Long incurred;
	/**
	 * Date of incurred.
	 */
	private Date today;
	/**
	 * Total hours of incurred task.
	 */
	private Integer hours;
	/**
	 * Owner of incurred.
	 */
	private String login;
	/**
	 * Indentifier of associated card.
	 */
	@Id
	private Long card;
	/**
	 * @return the incurred
	 */
	public final Long getIncurred() {
		return incurred;
	}
	/**
	 * @param incurredIn the incurred to set
	 */
	public final void setIncurred(final Long incurredIn) {
		this.incurred = incurredIn;
	}
	/**
	 * @return the today
	 */
	public final Date getToday() {
		return today;
	}
	/**
	 * @param todayIn the today to set
	 */
	public final void setToday(final Date todayIn) {
		this.today = todayIn;
	}
	/**
	 * @return the hours
	 */
	public final Integer getHours() {
		return hours;
	}
	/**
	 * @param hoursIn the hours to set
	 */
	public final void setHours(final Integer hoursIn) {
		this.hours = hoursIn;
	}
	/**
	 * @return the login
	 */
	public final String getUser() {
		return login;
	}
	/**
	 * @param userIn the login to set
	 */
	public final void setUser(final String userIn) {
		this.login = userIn;
	}
	/**
	 * @return the card
	 */
	public final Long getCard() {
		return card;
	}
	/**
	 * @param cardIn the card to set
	 */
	public final void setCard(final Long cardIn) {
		this.card = cardIn;
	}

}
